<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Moeder
 *
 * @author oophp
 */
abstract class Moeder {
    private $_html='';
    private $_foutboodschap = '';
    
    protected function _addHtml($html = ''){
        $this->_html .=$html;
    }
    protected function _addFoutBoodschap($html = ''){
        $this->_foutboodschap .=$html;
    }
    protected function _clearHtml(){
        $thid->_html = '';
    }
    public function getHtml(){
        $this->_verwerk();
        
        $output = $this->_html;
        if(!empty($this->_foutboodschap)){
            $output .= '<div class="fout">'.$this->_foutboodschap.'</div>';
        }
        return $output;
    }
    abstract protected function _verwerk();
    abstract protected function _genereerHtml();
    //put your code here
}

?>
